<!--
 * @Author: Soulmate
 * @Date: 2023-11-17 08:35:58
 * @LastEditTime: 2023-11-17 14:24:04
 * @LastEditors: Soulmate
 * @Description: 
 * @FilePath: \electron-app\src\views\home\index.vue
 * 版权声明
-->
<script setup lang="ts">
import { TestApi } from '../../api/index';

const checkNoticeMsg = () => {
    let option = {
        title: '消息通知',
        body: 'electron消息通知弹出',
        icon: '../../public/electron.png', // 图标
    };
    new window.Notification(option.title, option);
};

TestApi()
    .then((res) => console.log(res))
    .catch((err) => console.log(err));
</script>
<template>
    <el-button type="primary">Primary</el-button>
    <div @click="checkNoticeMsg">home</div>
</template>
<style scoped lang="scss"></style>
